﻿@model IEnumerable<asMeishi.web.Models.shop>
@using publicLibrary;

@using asMeishi.web.Classes
@using asMeishi.web
@using asMeishi.web.Models
@using asMeishi.web.Controllers
@{
    double[] longitudeAndLatitude = ViewBag.source_longitudeAndLatitude as double[];
    Layout=null;
}
<script src="/Content/script/myGoogleMap.js" ></script>
<div class="shopBoxContent">
    <div class="formNote">附近的食场(最多15家)</div>
    <div class="shopListPanle" style=" border-top:2px;" >
    @Html.ValidationSummary()
    @if (Model != null){
    foreach (var item in Model)
    {
    <div class="itemShopBox " style=" width:338px; float:left; border:1px solid #e0e0e0; padding:8px; margin:12px" >

         <div class="shopDetailEx cbcolor" style=" width:130px; ">

            <div style=" margin-right:0px; text-align:center">人均<span class="grade ncolor">@item.cost.toSumValue("—")</span>元 <span class='num'>(@item.cost_number)</span></div>
            <div style=" text-align:center" >
                <div class="ncolor bigSum">@item.sum_score.toSumValue("—")</div>
                综合分值<span class="score_number">( @item.score_number 人次)</span>
            </div>
            
        </div>
        <!-- 平分--->
        <div style="  margin-right:20px;">
            <span style=" font-size:34px">
                <script>
                    var jl = Math.round(asMeishiMapClass.getbetwwon(@item.longitudeAndLatitude[1] ,@item.longitudeAndLatitude[0],@longitudeAndLatitude[1],@longitudeAndLatitude[0]))
                    var jlstr;
                    if(jl>1000){
                        jlstr=parseFloat(jl/1000).toFixed(2) +"公里"
                    }else{
                        jlstr= jl+"米";
                    }
                    document.write(jlstr)
                </script>
            </span>
        </div>
        
@*        <div class="headPic">
            @{var headPic = "";
              if (item.picUrlList == null)
              {
                  headPic = baseConfig.siteThemePath + "images/shopNullPic.png";
              }
              else {
                  headPic = "/upload/pic/s/" + item.picUrlList.First() +".jpg";
              }
             } 
            <img src="@headPic" />
        </div>*@


        <div >

            <span class="shopTitle" ><a href="/shop/detail/@item.Id" target="_blank">@item.name</a></span>

            <div style=" color:Gray">[ @item.foodStyle ]</div>

            <div class="address" style=" color:Gray">@item.addressStr</div>
@*            <div>电话:@item.telephone</div>*@
            <div class="shopComment" style=" font-size:10px;">点评<span class="num">@item.comment_number</span>人次</div>
            
                          
        </div>
         <!-- 平分--->

    </div>
    }
    }
    </div>
</div>